Passed
Push — master ( 2ca0e9...997ccc )
by Vitor
02:35
created

getHomepageMetadataProvider.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
dl 0
loc 19
c 0
b 0
f 0
rs 10
nop 0
1
import { useStaticQuery, graphql } from 'gatsby';
2
3
export const getHomepageMetadataProvider = () => (
4
    useStaticQuery(graphql`
5
        {
6
            intro: homepageYaml(slug: {eq: "intro" }) {
7
                title
8
                description
9
                biography
10
            }
11
            expertise: homepageYaml(slug: {eq: "expertise" }) {
12
                title
13
                description
14
                items {
15
                    title
16
                    description
17
                }
18
            }
19
        }
20
    `)
21
);
22